package com.Web.util;

import java.util.List;

public class PageResult<T> {
    private Integer code;
    private String nsg;
    private Integer count;
    private List<T> data;

    public PageResult() {
    }

    public PageResult(Integer code, String nsg, Integer count, List<T> data) {
        this.code = code;
        this.nsg = nsg;
        this.count = count;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getNsg() {
        return nsg;
    }

    public void setNsg(String nsg) {
        this.nsg = nsg;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "PageResult{" +
                "code=" + code +
                ", nsg='" + nsg + '\'' +
                ", count=" + count +
                ", data=" + data +
                '}';
    }
}
